.service-opening {
    height: 100%;
    width: 100%;
    overflow: auto;

    &-nav {
        background: url("./img/bg.png")no-repeat;
        width: 100%;
        height: 16.6875rem;
        background-size: cover;
        padding: .25rem .375rem;
        box-sizing: border-box;

        .top {
            width: 100%;
            height: 1.5rem;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 1.875rem;
            display: flex;
            align-items: center;
            padding: 0 .625rem;
            box-sizing: border-box;
            margin-bottom: 1.0625rem;
            overflow: hidden;
            position: relative;
            img {
                width: .875rem;
                height: .875rem;
                object-fit: contain;
            }

            .notice_list {
                position: absolute;
                top: 0;
                left: 2rem;
                &.notice_top {
                    transition: all 0.5s;
                    margin-top: -1.5rem;
                }

                li {
                    height: 1.5rem;
                    line-height: 1.5rem;

                    span {
                        height: 1.5rem;
                        line-height: 1.5rem;
                        font-size: .78125rem;
                        color: #FD6406;
                    }
                }
            }
        }

        .title {
            width:11.40625rem;
            height:1.5rem;
            object-fit: contain;
            margin-left: .8125rem;
            margin-bottom: .625rem;
        }

        .text {
            width: 20.4375rem;
            height: 5rem;
            object-fit: contain;
            display: flex;
            margin: 0 auto .875rem;
        }

        .bt {
            width: 21.9375rem;
            height: 5.25rem;
            background: #FFFFFF;
            border-radius: .4375rem;
            padding: .9375rem 1.15625rem .625rem;
            box-sizing: border-box;
            margin: 0 auto;

            img {
                width: 100%;
                height: 100%;
                object-fit: contain;
            }
        }

    }

    &-giftBag {
        background: #FFFFFF;
        box-shadow: 0px 2px 26px 7px rgba(0, 0, 0, 0.06);
        border-radius: .4375rem;
        margin: .6rem 0.75rem;
        position: relative;
        padding-top: 2rem;

        .title {
            width: 11.25rem;
            height: 1.8125rem;
            background: url("./img/top.png")no-repeat;
            background-size: cover;
            font-size: .875rem;
            font-weight: 600;
            color: #4F3700;
            display: flex;
            align-items: center;
            justify-content: center;
            position: absolute;
            top: -5px;
            left: 50%;
            transform: translateX(-50%);
        }

        .info {
            width: 20.125rem;
            height: 1.6875rem;
            line-height: 1.6875rem;
            background: #FFFAEE;
            border-radius: .4375rem;
            color: #FFA602;
            font-size: .75rem;
            font-weight: 500;
            text-align: center;
            margin: 0 auto;
        }

        .items-box {
            display: flex;
            justify-content: space-between;
            padding: 0 .9375rem;
            margin-top: 1.4rem;
            position: relative;
            flex-wrap: wrap;

            .item {
                display: flex;
                flex-direction: column;
                align-items: center;
                margin-bottom: .90625rem;
                width: 33%;

                img {
                    width: 3.4375rem;
                    height: 3.4375rem;
                    object-fit: contain;
                    margin-bottom: .21875rem;
                }

                .item-title {
                    font-size: .8125rem;
                    font-weight: 500;
                    color: #333333;
                    margin-bottom: .375rem;
                }

                .details {
                    font-size: .75rem;
                    transform: scale(0.95);
                    color: #999999;
                    line-height: 1rem;
                }
            }

            .connect {
                background: url(./img/connect.png)no-repeat;
                background-size: contain;
                width: 7.40625rem;
                height: 1.25rem;
                position: absolute;
                top: -20px;
                left: 60px;
                display: flex;
                align-items: center;
                justify-content: center;

                span {
                    font-size: .75rem;
                    color: #FEB527;
                    transform: scale(0.9);
                }
            }
        }

        .bottom {
            padding: .4em 1.625rem;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 .7875rem 0;
            border-top: 1px solid #EDEDED;

            img {
                width: .9375rem;
                height: .9375rem;
                object-fit: contain;
            }

            span {
                font-size: 14px;
                color: #FFA602;
                margin: 0 .21875rem;
            }
        }
    }

    &-container {
        width: 100%;
        background: #ffffff;
        box-shadow: 0px -0.25rem 1.625rem 0.4375rem rgba(0, 0, 0, 0.04);
        border-radius: 1.125rem;
        padding: 1.375rem .75rem;
        box-sizing: border-box;

        .title {
            font-size: 1rem;
            font-weight: 500;
            color: #333333;
            line-height: 1.125rem;
            margin-bottom: .8125rem;
        }

        .setMeal {
            display: flex;
            align-items: center;
            margin-bottom: 1.3125rem;

            li {
                width: 33%;
                height: 8rem;
                border-radius: 0.5625rem;
                margin-right: 0.5rem;
                display: flex;
                flex-direction: column;
                justify-content: flex-start;
                align-items: center;
                padding-top: 1.1875rem;
                box-shadow: 0px 1px 13px 3.5px rgba(0, 0, 0, 0.04);
                background: linear-gradient(160deg, #ffffff 0%, #ffffff 100%);
                position: relative;

                &.active {
                    background: linear-gradient(160deg, #FFB800 0%, #FF9900 100%);

                    .month,
                    .money,
                    .unit,
                    .old {
                        color: #ffffff;
                    }

                    .flow {
                        background: #FFFAF2;
                        color: #FFA602;
                        font-size: .75rem;
                    }
                }

                &:last-child {
                    margin-right: 0;
                }

                .month {
                    font-size: 0.78125rem;
                    font-weight: 500;
                    color: #404040;
                    line-height: 0.90625rem;
                }

                .money {
                    font-size: 1.625rem;
                    font-family: DINPro-Bold, DINPro;
                    font-weight: bold;
                    line-height: 1.875rem;
                    margin-top: 0.3125rem;
                    color: #FFA602;

                    span {
                        font-size: 0.75rem;
                        font-family: DINPro-Medium, DINPro;
                        font-weight: 500;
                    }
                }

                .unit,
                .old{
                    color: #999999;
                    font-size: 0.75rem;
                    margin-top: 0.53125rem;
                    transform: scale(0.9);
                }
                .flow {
                    margin: .5rem .3rem;
                    background: #FFFAF2;
                    color: #FFA602;
                    width: 105%;
                    transform: scale(0.9);
                    font-size: .75rem;
                    text-align: center;
                }

                .old {
                    margin-top: 1px;
                    text-decoration: line-through;
                }

                .sim {
                    width: 3.5625rem;
                    height: 1.4375rem;
                    background: url("./img/active_bg.png")no-repeat;
                    background-size: contain;
                    color: #fff;
                    position: absolute;
                    right: -0.25rem;
                    top: -0.4rem;
                    border-radius: 0 0.5rem 0 0.5rem;
                    display: flex;
                    align-items: center;

                    em {
                        width: 100%;
                        height: 100%;
                        font-size: 0.75rem;
                        transform: scale(0.85);
                        font-style: normal;
                        display: inline-block;
                        text-align: center;
                    }
                }
            }
        }

        .info {
            width: 100%;
            margin-bottom: 1.125rem;

            em {
                width: 101%;
                display: inline-block;
                font-size: 12px;
                color: #999999;
                transform: scale(0.95);
            }
        }

        .gift-bag {
            width: 100%;

            .content {
                box-sizing: border-box;
                background: #FFFAEE;
                border-radius: 0.5625rem;
                border: 0.0625rem solid #FFECBE;
                padding: 0.5rem;

                .top {
                    display: flex;
                    align-items: center;

                    .item {
                        display: flex;
                        align-items: center;
                        width: 49%;
                        height: 3.6875rem;
                        box-sizing: border-box;
                        border: 0.0625rem solid #d9d9d9;
                        border-radius: 0.4375rem;
                        padding-left: 0.875rem;
                        position: relative;
                        background: #ffffff;

                        &::after {
                            position: absolute;
                            bottom: 0;
                            right: 0;
                            content: " ";
                            display: inline-block;
                            width: 1.21875rem;
                            height: 1.21875rem;
                            background-color: #f7f7f7;
                            border: 1px solid #d9d9d9;
                            border-radius: 0.4375rem 0 0.4375rem 0;
                            border-right: 0;
                            border-bottom: 0;
                        }

                        &.active {
                            border: 0.0625rem solid #FFA602;

                            &::after {
                                bottom: -0.0625rem;
                                border: 1px solid #FFA602;
                                background-image: url("./img/r_icon.png");
                                background-size: 0.75rem 0.5625rem;
                                background-repeat: no-repeat;
                                background-position: center;
                                background-color: #FFA602;
                                border-right: 0;
                                border-bottom: 0;
                            }
                        }

                        &:first-child {
                            margin-right: 0.5rem;
                        }

                        .left {
                            width: 1.5rem;
                            height: 1.5rem;
                            object-fit: contain;
                        }

                        .right {
                            margin-left: 0.75rem;

                            p {
                                font-size: 0.8125rem;
                                line-height: 0.9375rem;

                                &:first-child {
                                    font-weight: 500;
                                    color: #333333;
                                }

                                &:last-child {
                                    margin-top: 0.1875rem;
                                    font-weight: 600;
                                    color: #FFA602;
                                }
                            }
                        }
                    }
                }

                .info {
                    font-size: .75rem;
                    color: #333333;
                    margin-top: .625rem;
                    margin-bottom: .3125rem;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;

                    span {
                        color: #FFA602;
                        text-decoration: underline;
                        margin-right: .3125rem;
                    }
                }

                .input {
                    width: 100%;
                    height: 2.625rem;
                    background: #FFFFFF;
                    box-shadow: 0px 1px 13px 3.5px #FFF5E2;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    padding-right: .6875rem;
                    box-sizing: border-box;
                    position: relative;
                    border-radius: .5625rem;

                    input {
                        width: 100%;
                        height: 100%;
                        position: absolute;
                        top: 0;
                        left: 0;
                        border: none;
                        padding-left: 1.125rem;
                        box-sizing: border-box;
                        color: #808080;
                        border-radius: .5625rem;
                        outline: none;

                        &.error {
                            border: 1px solid #FD6406;
                        }
                    }

                    .select-menu {
                        width: 100%;
                        max-height: 7.875rem;
                        overflow: auto;
                        background: #fff;
                        box-shadow: 0px 1px 13px 3.5px #FFF5E2;
                        border-radius: 9px;
                        position: absolute;
                        top: 3.125rem;
                        left: 0;
                        z-index: 3;

                        p {
                            height: 2.625rem;
                            line-height: 2.625rem;
                            color: #333333;
                            font-weight: 500;
                            padding-left: .9375rem;

                            &.active {
                                color: #3788FE;
                            }
                        }
                    }
                }

                .tips {
                    color: #FFA602;
                    font-size: .75rem;
                    margin-top: .4375rem;

                    span {
                        text-decoration: underline;
                    }
                }
            }

            .error {
                animation-duration: 0.5s;
                animation-name: shake;
                border: 1px solid #fd6406;
            }
        }

        .error-tip {
            width: 100%;
            height: 1.625rem;
            background: #FD6406;
            border-radius: .1875rem;
            color: #FFFFFF;
            font-size: .875rem;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            margin-top: .6875rem;
            animation-duration: 0.5s;
            animation-name: shake;

            &::after {
                display: inline-block;
                position: absolute;
                right: .9375rem;
                top: -0.5rem;
                content: " ";
                width: .9375rem;
                height: .625rem;
                background: url("./img/vector.png") no-repeat;
                background-size: contain;

            }
        }

        .tips {
            font-size: .75rem;
            margin-top: 1.3125rem;
            color: #fb6242;
        }

        .service-content {
            margin-top: .625rem;
            width: 100%;
            background: #F8F8F8;
            font-size: .75rem;
            padding: .9375rem .8125rem;
            box-sizing: border-box;
            margin-bottom: 6.25rem;

            p {
                color: #999999;
                line-height: 1.125rem;

                span {
                    color: #3788FE;
                }
            }

            .mgl15 {
                margin-left: .9375rem;
            }
            .mgt5{
                margin-top: .3125rem;
            }
        }
    }

    &-bottom {
        width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 10;

        .agreement {
            width: 100%;
            height: 2.0625rem;
            background: #F4F9FF;
            display: flex;
            align-items: center;
            padding-left: .875rem;
            color: #000000;
            font-size: .75rem;

            a {
                color: #3788FE;
            }

            i {
                background: url(./img/d_tick.png)no-repeat;
                width: 1rem;
                height: 1rem;
                background-size: contain;
                display: inline-block;
                margin-right: .625rem;

                &.active {
                    background: url(./img/l_tick.png)no-repeat;
                    background-size: contain;
                }
            }
        }

        .buy-box {
            width: 100%;
            height: 4.1875rem;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            background: #FFFFFF;
            padding-left: 1.15625rem;
            padding-right: .75rem;
            box-sizing: border-box;

            img {
                width: 5rem;
                height: 2.59375rem;
                object-fit: contain;

                &.hidden {
                    z-index: -9999;
                    opacity: 0;
                    display: inline-block;
                }
            }

            .right {
                display: flex;
                align-items: center;

                span {
                    &:first-child {
                        color: #999999;
                        font-size: 13px;
                    }

                    &:nth-child(2) {
                        color: #404040;
                        font-size: 1.625rem;
                        font-weight: bold;
                        margin-left: .25rem;
                        margin-right: .8125rem;
                    }

                    &:last-child {
                        width: 7.125rem;
                        height: 2.6875rem;
                        line-height: 2.6875rem;
                        background: #FFB700;
                        border-radius: 2.75rem;
                        text-align: center;
                        font-size: 1rem;
                        display: inline-block;
                        color: #fff;
                    }
                }
            }
        }

        .agreement-error {
            width: 11.75rem;
            height: 2.21875rem;
            line-height: 2.21875rem;
            background: rgba(0, 0, 0, 0.699999988079071);
            border-radius: 2rem;
            position: absolute;
            top: -0.625rem;
            left: 50%;
            color: #fff;
            text-align: center;
            transform: translateX(-50%);
        }
    }

    &-onTrialPop {
        position: fixed;
        width: 100vw;
        left: 0;
        top: 0;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        justify-content: center;
        align-items: center;
        display: -webkit-flex;
        display: flex;
        z-index: 999;

        img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: top;
            position: fixed;
            top: 0;
        }

        .close {
            width: 1.875rem;
            height: 1.875rem;
            border-radius: 50%;
            z-index: 1000;
            position: absolute;
            top: 31vw;
            right: 11%;
        }

        .btn {
            width: 70%;
            height: 3.125rem;
            z-index: 1000;
            position: absolute;
            top: 121vw;
            left: 15%;
            border-radius: 1.25rem;
        }
    }

    &-agreementPop {
        position: fixed;
        width: 100vw;
        left: 0;
        top: 0;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        justify-content: center;
        align-items: center;
        display: -webkit-flex;
        display: flex;
        z-index: 999;

        .nav {
            position: fixed;
            top: 2vw;
            left: 50%;
            transform: translateX(-50%);
            background: #fff;
            z-index: 1001;
            width: 90%;
            height: 16vw;
            border-radius: .5rem .5rem 0 0;


            .close {
                position: absolute;
                top: 0.5rem;
                right: 0.5rem;
                width: 1.875rem;
                height: 1.875rem;
                background: url("./img/close.png")no-repeat;
                background-size: .9375rem;
                background-position: center;
            }

            .title {
                font-size: 1.0625rem;
                font-weight: 500;
                color: #333333;
                text-align: center;
                padding-top: 1.875rem;
                padding-bottom: .625rem;
                box-sizing: border-box;
            }

        }

        .content {
            width: 90%;
            height: 90%;
            overflow: auto;
            position: fixed;
            top: 15vw;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1000;
            background: #ffffff;
            border-radius: 0 0 .5rem .5rem;
            padding: 0 1.5rem .625rem;
            box-sizing: border-box;

            pre {
                font-size: .75rem;
                display: block;
                white-space: break-spaces;
            }
        }
    }

    &-customer {
        position: fixed;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        background: #ffffff;
        box-shadow: 0px 2px 26px 0px #0000000F;
        height: 3.4375rem;
        width: 1.75rem;
        border-radius: .8125rem 0 0 .8125rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        img {
            width: 1.25rem;
            height: 1.25rem;
        }

        span {
            color: #666666;
            font-size: .75rem;
            margin-top: .1875rem;
        }
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateZ(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translate3d(-5px, 0, 0);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translate3d(5px, 0, 0);
    }
}